package com.ct.service;

import java.util.List;

import com.ct.entity.po.TravelApproval;
import com.ct.entity.query.TravelApprovalQuery;
import com.ct.entity.vo.PaginationResultVO;
import com.ct.entity.vo.TravelVO;

/**
 * 经理视频出差申请记录 业务接口
 */
public interface TravelApprovalService {

    /**
     * 根据条件查询列表
     */
    List<TravelApproval> findListByParam(TravelApprovalQuery param);

    /**
     * 根据条件查询列表
     */
    Integer findCountByParam(TravelApprovalQuery param);

    /**
     * 分页查询
     */
    PaginationResultVO<TravelApproval> findListByPage(TravelApprovalQuery param);

    /**
     * 新增
     */
    Integer add(TravelApproval bean);

    /**
     * 批量新增
     */
    Integer addBatch(List<TravelApproval> listBean);

    /**
     * 批量新增/修改
     */
    Integer addOrUpdateBatch(List<TravelApproval> listBean);

    /**
     * 多条件更新
     */
    Integer updateByParam(TravelApproval bean, TravelApprovalQuery param);

    /**
     * 多条件删除
     */
    Integer deleteByParam(TravelApprovalQuery param);

    /**
     * 根据TravelApprovalId查询对象
     */
    TravelApproval getTravelApprovalByTravelApprovalId(Integer travelApprovalId);

    /**
     * 根据TravelApprovalId修改
     */
    Integer updateTravelApprovalByTravelApprovalId(TravelApproval bean, Integer travelApprovalId);

    /**
     * 根据TravelApprovalId删除
     */
    Integer deleteTravelApprovalByTravelApprovalId(Integer travelApprovalId);

    /**
     * 分页查询出差审批记录
     * 
     * @param userId   工号
     * @param pageNo   页码
     * @param pageSize 页大小
     * @return 分页结果
     */
    PaginationResultVO<TravelVO> getApproveTravelRecord(String userId, Integer pageNo, Integer pageSize);

    TravelApproval getTravelApprovalByTravelId(Integer travelId);

}